package com.xiaoke.domain.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 文章表(Article)表实体类
 *
 * @author xiaoke
 * @since 2023-03-16 22:23:52
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("article")
public class Article {
    @TableId
    private Long id;

    //用户ID
    private Integer userId;
    //分类ID
    private Integer categoryid;
    //文章标题
    private String title;
    //文章内容
    private String content;
    //浏览
    private Long browse;
    //文章摘要
    private String digest;
    @TableField(exist = false)
    // 文章分类
    private  String categoryName;
    @TableField(exist = false)
    // 标签列表
    private List TagList;
    //状态
    private String status;
    //是否置顶
    private String isTop;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //删除标志(1代表未删除,0代表已删除)
    private Integer delFlag;
}

